package cn.zhku.edu.productservice.service;

import cn.zhku.edu.feign.pojo.bo.ParentProduct;
import cn.zhku.edu.feign.pojo.entry.Product;
import cn.zhku.edu.feign.pojo.vo.DetailProductVO;
import cn.zhku.edu.feign.pojo.vo.GoodsItemVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ProductServies extends IService<Product> {
    int deleteByPrimaryKey(Integer gid);

    int insert(Product record);

    int insertSelective(Product record);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<ParentProduct> selectAllFilter(String[] filter, int tid);

    List<GoodsItemVO> getIndexRecommendGoodsLists(int[] recomendedGoodsGids);

    DetailProductVO getDetailProductVO(Integer gid);
}
